﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Components.Data.Fields
{
  internal class FieldRepository
  {
    public FieldCollection GetFields(Guid elementID)
    {
      FieldCollection fieldCollection = new FieldCollection();
      Field field;

      field = _fieldFactory.Create("Image");
      field.ID = new Guid();
      field.Name = "Logo";
      field.Value = "/Images/Components.png|CoMponentS - a new way of CMSing!";
      fieldCollection.Add(field);

      field = _fieldFactory.Create("Text");
      field.ID = new Guid();
      field.Name = "Title";
      field.Value = "CoMponentS - a new way of CMSing!";
      fieldCollection.Add(field);

      return fieldCollection;
    }

    private FieldFactory _fieldFactory = new FieldFactory();
  }
}